import http, { RequestParams } from '@/utils/request';

class MsgRequest {
  /**
   * 获得未读的消息数
   * @param params
   * @constructor
   */
  public static CheckoutIsReadCount(params: RequestParams) {
    return http.get<number>('wx/v1/remind/checkoutIsReadCount', params);
  }

  /**
   * 获得消息列表
   * @param params
   * @constructor
   */
  public static ObtainMessageList(params: RequestParams) {
    return http.get<IListRes<IObtainMessageList>>('wx/v1/remind/page', params);
  }

  /**
   * 获得消息列表
   * @param params
   * @constructor
   */
  public static MessageRead(params: RequestParams) {
    return http.get('wx/v1/remind/setIsRead', params);
  }
}

export default MsgRequest;
